<template>
  <div class="longContainer">
    <div class="list" v-for="(temp,index) in list" :key="index">
      <div class="long">
        <van-image fit="cover" :src="temp.poster | cover" alt="" class="longImg"></van-image>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default() {
        return [];
      }
    }
  }
};
</script>

<style lang="less">
.longContainer {
  width: 100%;
  padding: 0 3vw;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  box-sizing: border-box;
  .list {
    width: 50%;
    position: relative;
    .long {
      // width: 160px;
      height: 450px;
      overflow: hidden;
      margin: 10px 7px;
      background: #f8f8f8;
      border-radius: 5px;
      img {
        width: 100%;
      }
    }
  }
}
</style>